import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  	imgBaseURL: 'https://picsum.photos'
  },
	getters: {
		getImgURL: (state) => (width,height,random) => {return state.imgBaseURL + `/${width}/${height}/?random=${random}`}
	},
  mutations: {
  },
  actions: {
  },
  modules: {
  }
})
